// pages/fl/fl.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    flArr: [
      {
        id: "1",
        name: "表情包",
        url: "../../image/fl/1.jpg"
      },
      {
        id: "2",
        name: "男头",
        url: "../../image/fl/2.jpg"
      },
      {
        id: "3",
        name: "女头",
        url: "../../image/fl/3.jpg"
      },
      {
        id: "4",
        name: "聊天背景",
        url: "../../image/fl/4.jpg"
      },
      {
        id: "5",
        name: "卡通动漫",
        url: "../../image/fl/5.jpg"
      },
      {
        id: "6",
        name: "炫酷游戏",
        url: "../../image/fl/6.jpg"
      },
      {
        id: "7",
        name: "风景",
        url: "../../image/fl/4.jpg"
      },
      {
        id: "8",
        name: "世界名车",
        url: "../../image/fl/7.jpg"
      },
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },
  toFL(e) {
    let id = e.currentTarget.dataset.id
    console.log(e.currentTarget.dataset.id)
    if (id == 1) {  
      wx.navigateTo({  
        url: '../ClassificationTX/ClassificationTX?sort=表情包',  
      })  
    } else if (id == 2) {  
      wx.navigateTo({  
        url: '../ClassificationTX/ClassificationTX?sort=男生头像',  
      })  
    } else if (id == 3) {  
      wx.navigateTo({  
        url: '../ClassificationTX/ClassificationTX?sort=女生头像',  
      })  
    } else if (id == 4) {  
      wx.navigateTo({  
        url: '../ClassificationBZ/ClassificationBZ?sort=聊天背景',  
      })  
    } else if (id == 5) {  
      wx.navigateTo({  
        url: '../ClassificationBZ/ClassificationBZ?sort=卡通动漫',  
      })  
    } else if (id == 6) {  
      wx.navigateTo({  
        url: '../ClassificationBZ/ClassificationBZ?sort=炫酷游戏',  
      })  
    } else if (id == 7) {  
      wx.navigateTo({  
        url: '../ClassificationBZ/ClassificationBZ?sort=风景',  
      })  
    } else if (id == 8) {  
      wx.navigateTo({  
        url: '../ClassificationBZ/ClassificationBZ?sort=世界名车',  
      })  
    } else {  
      // 如果id不等于1到8之间的任何一个值，将执行这里的的内容  
      // 可以根据需要添加其他逻辑  
    }
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})